package com.wyz.note.mq.rabbit.consumer.receiver;

import com.wyz.note.mq.rabbit.consumer.constant.BaseConstant;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description: 消息接收监听类（主题）教师
 * @Author: wei yz
 * @Date: 2022/6/12 15:35
 */
@Component
@RabbitListener(queues = BaseConstant.teacher)
public class TeacherTopicReceiver {

    /**
     * 由于
     * @author wei yz
     * @param 
     * @return 
     */
    @RabbitHandler
    public void process(Map testMessage) {
        System.out.println("教师（teacher）消费者收到消息  : " + testMessage.toString());
    }
}
